import  axios from 'axios'



export default class CwInoutTypeService {
    static cwInoutTypeService =null;
    static getInstance(){
        if(this.cwInoutTypeService == null){
            this.cwInoutTypeService = new CwInoutTypeService()
        }
        return this.cwInoutTypeService
    }

    list(){
        return axios.get("http://localhost/cwinouttype")
    }

    /**
     * 获取业务类型
     */
    business(){
        return axios.get('http://localhost/cwinouttype/business')
    }
    //收支类别下拉框渲染 type=+的
    findCaseType(){
       return axios.get("http://localhost/cwinout/findCaseType")
    }

    /**
     * 查询财务统计
     */
    ssFinanceCount(params){
        return  axios.get("http://localhost/cwinouttype/financecount",{
            params
        })
    }
}